package it.polimi.swimv2.remote;

import it.polimi.swimv2.exception.ModifyException;
import it.polimi.swimv2.exception.UserDataException;

import javax.ejb.Remote;

@Remote
public interface AdminManagerRemote {

	/**
	 * Modify the password of the administrator.
	 * 
	 * @param username
	 *            the username of the admin.
	 * @param curPassword
	 *            the current password.
	 * @param newPassword
	 *            the new password to set.
	 * @throws UserDataException
	 *             when the new password is not valid.
	 * @throws ModifyException
	 *             when the parameters username and curPassword are not correct.
	 */
	public void modifyPassword(String username, String curPassword,
			String newPassword) throws UserDataException, ModifyException;

}
